import request from '@/axios/axios.js'

// 查询
export const searchApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldOutbound/getDeviceTzList',
        data: params
    })
}
// 修改
export const updateApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldOutbound/updateMoldWarehousing',
        data: params
    })
}
// 新增工装出库申请
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldOutbound/addMoldWarehousing',
        data: params
    })
}
// 根据工装编号查询工装信息
export const getMoldInfoList= (params) => {
    return request({
        method: 'post',
        url: '/dms/moldOutbound/getMoldInfoList',
        data:{
            pageSize:25,
            pageNum:1,
            ...params
        },
    })
}
export const deleteApi= (params) => {
    return request({
        method: 'DELETE',
        url: '/dms/moldOutbound/deleteById',
        params: params
    })
}
// 出库申请审批
export const approval= (params) => {
    return request({
        method: 'POST',
        url: '/dms/moldOutbound/approval',
        data: params
    })
}
// 修改工装出库申请
export const updateMoldWarehousing= (params) => {
    return request({
        method: 'POST',
        url: '/dms/moldOutbound/updateMoldWarehousing',
        data: params
    })
}